package demo2;

class TestDemo implements TestA{
    @Override
    public void testA() {
        System.out.println("重写TestA()");
    }

    @Override
    public void defaultMethod() {
        System.out.println("重写defaultMethod()");
    }
}

abstract  class TestDemo2 implements TestA{
    public abstract void testDemod2();
}

class TestDemo3 extends TestDemo2{
    @Override
    public void testA() {

    }

    @Override
    public void testDemod2() {

    }
}

public class Test {
    public static void main(String[] args) {
        TestA.testStatic();
        TestDemo testDemo = new TestDemo();
        testDemo.defaultMethod();
    }
}
